<?php

require_once ('Tag.php');

/**
 * besides of base, head, html, meta, param, script, style and title tags 
 * @author Admin
 *
 */
class CoreTag extends Tag {
	
	protected $class;
	protected $id;
	protected $style;
	protected $title;
	
	public function __construct($_tagName) {
		parent::__construct ($_tagName);
		$this->class="";
		$this->id="";
		$this->style="";
		$this->title="";
		$this->attributeNames=array('class','id','style','title');
		$this->attributeValues=array('','','','');
	}
	
	public function setClass($_class)
	{
		$this->class=(string)$_class;
		$this->setAttributeValue('class','');
	}
	
	public function getClass()
	{
		return $this->class;
	}
	
	public function setId($_id)
	{
		$this->id=(string)$_id;
		$this->setAttributeValue('id',$_id);
	}
	
	public function getId()
	{
		return $this->id;
	}
	
	public function setStyle($_style)
	{
		$this->style=(string)$_style;
		$this->setAttributeValue('style',$_style);
	}
	
	public function getStyle()
	{
		return $this->style;
	}
	
	public function setTitle($_title)
	{
		$this->title=(string)$_title;
		$this->setAttributeValue('title',$_title);
	}
	
	public function getTitle()
	{
		return $this->title;
	}
}

?>